from django.urls import re_path
from rest_framework.routers import DefaultRouter
from bid.views import AssetInfoViewSet

router = DefaultRouter()
# 资产信息
router.register(r"assetinfo", AssetInfoViewSet, basename="assetinfo")


urlpatterns = [
    # 导出资产
    re_path("assetinfo/export/", AssetInfoViewSet.as_view({"get": "export"})),
    # 导入功能
    re_path("assetinfo/asset_import/", AssetInfoViewSet.as_view({"get": "importTemplate", "post": "importTemplate"})),
]
urlpatterns += router.urls
